home *** CD-ROM | disk | FTP | other *** search
- %TITLE "Copy String external Turbo C function"
-
- IDEAL
- MODEL small
-
- CODESEG
-
- PUBLIC _copystring
-
- %NEWPAGE
- ;-----------------------------------------------------------------------------
- ; void copystring(unsigned char far * source, unsigned char far * destination, int sourcelen)
- ;-----------------------------------------------------------------------------
- PROC _copystring NEAR
- ARG source:DWord, destination:DWord, sourcelen:Word
-
- push bp
- mov bp,sp
- mov cx,[sourcelen]
- jcxz @@99
- push ds
- les di,[destination]
- lds si,[source]
- cld
- rep movsb
- pop ds
- @@99:
- pop bp
- ret
- ENDP _copystring
-
- END